﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TheHeInfo.Util;

namespace TheHeInfo.Master
{
    public partial class Home : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                CheckUser();
        }

        protected void CheckUser()
        {
            var data = Session[SessionNames.USER_DATA] as UserSessionData;
            if (data == null)
                Response.Redirect("~/Welcome.aspx");
        }
    }
}